package org.example;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService extends ServiceImpl<UserMapper, User> {
    // 业务逻辑方法
    public List<User> load() {
        QueryWrapper<User> wrapper = new QueryWrapper<>();
        wrapper.eq("type", 1);
        return baseMapper.selectList(wrapper);
    }

}
